#ifndef SPL_PICTUREBOX
#define SPL_PICTUREBOX

class DLLEXPORT PictureBox : public Controls::Control {
private:
    Gdip::Image*                image;
    Geom::ImageSizeMode         sizeMode;

protected:
    VOID                        onControlPaint(Controls::ControlPaintEvent& iEvent);

public:
    SPLINL Geom::ImageSizeMode  getSizeMode() {
        return sizeMode;
    }
    SPLINL VOID                 setSizeMode(Geom::ImageSizeMode value) {
        sizeMode = value;
    }

    SPLINL Gdip::Image*         getImage() {
        return image;
    }
    SPLINL VOID                 setImage(Gdip::Image* value) {
        image = value;
    }

    SPLINL PictureBox() : image(NULL), sizeMode(Geom::ImageSizeModeFit) {}
};

#endif